package com.dm.yyxr.pojo.dto;

import lombok.Data;

@Data
public class SupplyDto {
    String area_name;//区域名称
    int user_num;//用户数量
    Double consume_num_pre;//用电量
    Double supply_num_now;//当月供电量

    //获取用电量1
    public Double getConsume_num_pre() {
        if(consume_num_pre==null){
            return (double) 0;
        }else{
            return consume_num_pre;
        }
    }
    //获取当月的供给量
    public Double getSupply_num_now() {
        if(supply_num_now==null){
            return (double) 0;
        }else{
            return supply_num_now;
        }
    }
}
